package com.geek.project.geekglobalexceptionstarter.config;

import com.geek.project.geekglobalexceptionstarter.error.GlobalExceptionTranslator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GlobalExceptionAutoConfiguration {

    @Bean
    public GlobalExceptionTranslator globalExceptionTranslator(){
        return new GlobalExceptionTranslator();
    }
}
